package com.atbun.eduservice.client;

import com.atbun.commonutils.R;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description : 熔断器Hystrix
 * @Author : mayp
 * @Date: 2020-05-12 23:06
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {
    @Override
    public R deleteVideo(String videoId) {
        return R.error().message("service-vod服务超时了，可能是宕机了");
    }

    @Override
    public R deleteVideoList(List videoIdList) {
        return R.error().message("删除多个视频接口，可能是service-vod服务宕机了");
    }
}
